import Vue from 'vue'
import App from './App'
import MyRequest from '@/utils/request'
import search from "@/components/search"
// 1. 导入mixin
import auth from '@/mixin'

// 1. 导入vuex
import store from '@/store'

Vue.config.productionTip = false

App.mpType = 'app'

Vue.component('search', search)

Vue.use(MyRequest)
// 2. 注册mixin
Vue.mixin(auth)

const app = new Vue({
  ...App,
  // 2. 挂载store
  store
})
app.$mount()
